import { Entity, PrimaryColumn } from 'typeorm';

@Entity('sys_user_role', {
  comment: '用户身份关联表',
})
export class UserWidthRoleEntity {
  @PrimaryColumn({ type: 'int', name: 'user_id', comment: '用户ID' })
  userId: number;

  @PrimaryColumn({ type: 'int', name: 'role_id', comment: '身份ID' })
  roleId: number;
}
